<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>跨三论剑</title>
    <script src="../../js/jquery-3.4.1.min.js"></script>
    <link rel="stylesheet" href="../../layui/css/layui.css">
    <script src="../../layui/layui.js"></script>
    <script src="server_add.js"></script>
    <style type="text/css">
        .downpanel .layui-select-title span {
            line-height: 38px;
        }

        /*继承父类颜色*/
        .downpanel dl dd:hover {
            background-color: inherit;
        }
    </style>
    <style type="text/css">
        body {
            height: 100%;
            width: 100%;
            background-size: cover;
            margin: 0 auto;
        }
        td {
            font-size: 12px !important;
        }

        .layui-form-checkbox span {
            height: 30px;
        }
        .layui-field-title {
            border-top: 1px solid white;
        }
        table {
            width: 100% !important;
        }

    </style>
</head>
<body>
<div id="add-main" >
    <form class="layui-form" id="add-form" action="">
        <input type="hidden" id="parentId">
        <br/>
        <div class="layui-form-item">
            <label class="layui-form-label " style="width: 100px">类型</label>
            <div class="layui-input-block">
                <input type="radio" name="type" id="type1" value="0" title="目录" lay-filter="type" checked>
                <input type="radio" name="type" id="type2" value="1" title="服务器" lay-filter="type">
            </div>
        </div>

        <div class="layui-form-item center">
            <label class="layui-form-label"  style="width: 100px" >目录</label>
            <div class="layui-input-inline">
                <div class="layui-unselect layui-form-select downpanel" style="width: 240px">
                    <div class="layui-select-title">
                        <span class="layui-input layui-unselect" id="treeclass">选择上级目录</span>
                        <input type="hidden" name="parentId"  lay-verify="required" value="-1">
                        <i class="layui-edge"></i>
                    </div>
                    <dl class="layui-anim layui-anim-upbit">
                        <dd>
                            <ul id="classtree"></ul>
                        </dd>
                    </dl>
                </div>
            </div>
        </div>
        <div class="layui-form-item center" >
            <label class="layui-form-label" style="width: 100px" >名称</label>
            <div class="layui-input-block">
                <input type="text" name="name"  style="width: 240px" lay-verify="required"  autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item center ip" >
            <label class="layui-form-label" style="width: 100px" >ip</label>
            <div class="layui-input-block">
                <input type="text" name="ip"  style="width: 240px"   autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item center username" >
            <label class="layui-form-label" style="width: 100px" >账户</label>
            <div class="layui-input-block">
                <input type="text" name="username"  style="width: 240px"   autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item center password" >
            <label class="layui-form-label" style="width: 100px" >密码</label>
            <div class="layui-input-block">
                <input type="text" name="password"  style="width: 240px"   autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item center port" >
            <label class="layui-form-label" style="width: 100px" >端口</label>
            <div class="layui-input-block">
                <input type="text" name="port"  style="width: 240px"   autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item center vpn" >
            <label class="layui-form-label" style="width: 100px" >所需VPN</label>
            <div class="layui-input-block">
                <input type="text" name="vpn" id="vpn"  style="width: 240px"   autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label" style="width: 100px">排序</label>
            <div class="layui-input-block">
                <input type="number" name="sort" lay-verify="required"   style="width: 240px" autocomplete="off"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" >
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="save" style="margin-left: 40px">立即提交</button>
                <button type="button"  class="layui-btn layui-btn-primary" lay-filter="close" id="closeBtn" >取消</button>
            </div>
        </div>
    </form>
</div>

</body>
</html>